﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NotificationControl.ascx.cs" Inherits="SimplePMT.Control.NotificationControl" %>
<form name="notificationForm" id="notificationForm">
<input type="hidden" name="TaskID" value="<%= taskid%>" />
<input type="hidden" name="FileID" value="<%= fileid %>" />

<table width="100%" cellpadding=3>
        <tr>
            <td width="90%" style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE"><b><%= notificationType %></b></td>
        </tr>
        <tr>
            <td style="border:1px solid #6893cf;" valign=top>
                <table width="90%" align=center>
                    <tr>
                        <td align=right><b>Subject:</b></td>
                        <td><%= FormElement.TextBox(80, "Subject", notificationDefaultSubject, "", true)%></td>
                    </tr>
                    <tr>
                        <td align=right valign=top><b>Description:</b></td>
                        <td><%= FormElement.TextArea(81, 10, "Message", notificationDefaultBody, "", true)%></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height=3></td>
        </tr>
        <tr>
            <td width="90%" style="white-space:nowrap;color:#ffffff" bgcolor="#869AAE"><b>Notification Recipients</b><span style="width:77%;text-align:right;" id="selAll"><a href="javascript:OnClick=selectAll();" style="color:#ffffff">(selelct/deselect all)</a></td>
        </tr>
        <tr>
            <td style="border:1px solid #6893cf;" valign=top>
                <%= notificationMemberList %>
            </td>
        </tr>
        <tr>
            <td align=right id="noteFormBtns"><button type="button" onclick="cancel();">Cancel</button>&nbsp;&nbsp;&nbsp;<button type="button" onclick="sendNotification(this);">Send Notification</button>&nbsp;&nbsp;&nbsp;</td>
        </tr>
    </table>
    </form>